package com.clj.cloud.authorization_server.service.impl;

import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.clj.cloud.authorization_server.entity.Role;
import com.clj.cloud.authorization_server.entity.User;
import com.clj.cloud.authorization_server.provider.OrganizationProvider;
import com.clj.cloud.authorization_server.service.IRoleService;

@Service
public class RoleService implements IRoleService  {
	   @Autowired
	    private OrganizationProvider organizationProvider;


	    @Override
	    public Set<Role> queryUserRolesByUserId(String userId) {
	        return organizationProvider.queryRolesByUserId(userId).getData();
	    }
}
